import request from '@/utils/request.js'

export const useArticleListServices = (data) => request.get('/article', { params: data })
export const useArticleAddServices = (data) => request.post('/article', data)
export const useArticleGetServices = (id) => request.get(`/article/${id}`)
export const useArticleDeleteServices = (id) => request.delete(`/article/${id}`)
